import time
from machine import Pin

class LED:
    def __init__(self, GPIOn, direction, pullMode, level):
        self.pin = Pin(GPIOn, direction, pullMode, level)
        self.state = False
    def turn_on(self):
        self.pin.write(1)
        self.state = True
    def turn_off(self):
        self.pin.write(0)
        self.state = False
    @property
    def GetPinMode(self):
        return self.pin.read()
